.markdownRenderer {
  line-height: 1.6;
  word-wrap: break-word;
  min-width: 789px;
}

.markdownRenderer :global(.prose) {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #2c3e50;
  max-width: none;
}

/* Heading styles */
.markdownRenderer :global(.prose h1) {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  margin: 24px 0 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.markdownRenderer :global(.prose h2) {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin: 20px 0 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.markdownRenderer :global(.prose h3) {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 16px 0 8px;
}

.markdownRenderer :global(.prose h4),
.markdownRenderer :global(.prose h5),
.markdownRenderer :global(.prose h6) {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 12px 0 6px;
}

/* Paragraph styles */
.markdownRenderer :global(.prose p) {
  margin: 8px 0;
  line-height: 1.7;
}

/* List styles */
.markdownRenderer :global(.prose ul),
.markdownRenderer :global(.prose ol) {
  margin: 8px 0;
  padding-left: 24px;
}

.markdownRenderer :global(.prose li) {
  margin: 4px 0;
  line-height: 1.6;
}

.markdownRenderer :global(.prose li::marker) {
  color: #4a5568;
}

/* Blockquote styles */
.markdownRenderer :global(.prose blockquote) {
  margin: 16px 0;
  padding: 12px 16px;
  background: #f8fafc;
  border-left: 4px solid #3182ce;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #4a5568;
}

.markdownRenderer :global(.prose blockquote p) {
  margin: 0;
}

/* Table styles */
.markdownRenderer :global(.prose table) {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.markdownRenderer :global(.prose th),
.markdownRenderer :global(.prose td) {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.markdownRenderer :global(.prose th) {
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
}

.markdownRenderer :global(.prose tr:last-child td) {
  border-bottom: none;
}

.markdownRenderer :global(.prose tr:hover) {
  background: #f8fafc;
}

/* Code block styles */
.markdownRenderer :global(.prose pre) {
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: transparent !important;
}

/* Link styles */
.markdownRenderer :global(.prose a) {
  color: #3182ce;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.markdownRenderer :global(.prose a:hover) {
  color: #2c5aa0;
  border-bottom-color: #3182ce;
}

/* Divider styles */
.markdownRenderer :global(.prose hr) {
  margin: 24px 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e0, transparent);
}

/* Image styles */
.markdownRenderer :global(.prose img) {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Emphasis text styles */
.markdownRenderer :global(.prose strong) {
  font-weight: 600;
  color: #1a202c;
}

.markdownRenderer :global(.prose em) {
  font-style: italic;
  color: #4a5568;
}

/* Strikethrough styles */
.markdownRenderer :global(.prose del) {
  text-decoration: line-through;
  color: #a0aec0;
}

/* Streamdown code block style overrides */
.markdownRenderer :global([data-code-block-container="true"]) {
  border: none !important;
  padding: 0 !important;
}

/* Streamdown code block style overrides */
.markdownRenderer :global([data-streamdown="code-block"]) {
  border: none !important;
  padding: 0 !important;
}

/* Streamdown code block style overrides */
.markdownRenderer :global([data-code-block-header="true"]) {
  border: none !important;
  padding: 0 !important;
}

/* Streamdown Mermaid diagram block style overrides */
.markdownRenderer :global([data-code-block-container="true"]) {
  border: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .markdownRenderer :global(.prose) {
    font-size: 14px;
  }

  .markdownRenderer :global(.prose h1) {
    font-size: 20px;
  }

  .markdownRenderer :global(.prose h2) {
    font-size: 18px;
  }

  .markdownRenderer :global(.prose h3) {
    font-size: 16px;
  }

  .markdownRenderer :global(.prose pre) {
    margin: 12px -16px;
    border-radius: 0;
  }

  .markdownRenderer :global(.prose table) {
    font-size: 12px;
  }

  .markdownRenderer :global(.prose th),
  .markdownRenderer :global(.prose td) {
    padding: 8px;
  }
}
